package com.dailygreetings.dailygreetings.bo;
import java.util.List;
import lombok.Data;
/**
 * @BelongsProject: daily-greetings
 * @BelongsPackage: com.dailygreetings.dailygreetings.bo
 * @Author: shanzhengfei
 * @CreateTime: 2024-11-21  18:29
 * @Description: 彩云天气返回
 * @Version: 1.0
 */

@Data
public class CaiyunWeatherResponse {
    private String status;
    private String api_version;
    private String api_status;
    private String lang;
    private String unit;
    private int tzshift;
    private String timezone;
    private long server_time;
    private List<Double> location;
    private Result result;
    @Data
    public static class Result {
        private Daily daily;
    }
    @Data
    public static class Daily {
        private List<Temperature> temperature;
        private List<Skycon> skycon;
        private List<Comfort> comfort;
    }
    @Data
    public static class Temperature {
        private String date;
        private double max;
        private double min;
        private double avg;
    }
    @Data
    public static class Skycon {
        private String date;
        private String value;
    }
    @Data
    public static class Comfort {
        private String date;
        private String index;
        private String desc;
    }
}
